package com.smart.model.dtomapper;

import com.smart.model.domain.JiansheProjectDO;
import com.smart.model.request.JiansheProjectRequest;
import com.smart.model.vo.JiansheProjectVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface JiansheProjectDtoMapper {

    JiansheProjectDtoMapper INSTANCE = Mappers.getMapper(JiansheProjectDtoMapper.class);

    /**
    * DO to VO
    * @param jiansheProjectDO
    * @return
    */
    JiansheProjectVO do2VO(JiansheProjectDO jiansheProjectDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    JiansheProjectDO request2DO(JiansheProjectRequest request);
}
